#ifndef LOCALINTERFACE_H
#define LOCALINTERFACE_H

#include <QObject>
#include <QDir>
#include "xmlinterface.h"
#include "common.h"

class LocalInterface : public QObject
{
    Q_OBJECT

#define ARTOUR_LOCAL_DIR ((".artour"))
public:
    explicit LocalInterface(XMLInterface *x, QObject *parent = 0);

    void updatePaths();
    void removePropFolder(QString folderName);
    void readLocalXml();
    void removeAll();

private:
    QDir *artourDir;
    XMLInterface *xml;

    QString copyToDir(QString srcFile, QDir *destFolder);
    QString getFileName(QString path);
    QString linkFile(QString src);

signals:
    void logMessage(QString message, MESSAGE_TYPE mtype);

public slots:
    void writeDataToDir();

};

#endif // LOCALINTERFACE_H
